str = "Hello world"

new_str = str.rfind("o")
print(new_str)


#output
#7